Optimal. Leaf size=115 \[ \frac{\sqrt{\frac{1-\sin (e+f x)}{\sin (e+f x)+1}} \cos (e+f x) (-5 \sin (e+f x)-3)^{-m} (a \sin (e+f x)+a)^m \, _2F_1\left (\frac{1}{2},-m;1-m;\frac{5 \sin (e+f x)+3}{4 (\sin (e+f x)+1)}\right )}{4 f m (1-\sin (e+f x))} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0982541, antiderivative size = 115, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.069, Rules used = {2788, 132} \[ \frac{\sqrt{\frac{1-\sin (e+f x)}{\sin (e+f x)+1}} \cos (e+f x) (-5 \sin (e+f x)-3)^{-m} (a \sin (e+f x)+a)^m \, _2F_1\left (\frac{1}{2},-m;1-m;\frac{5 \sin (e+f x)+3}{4 (\sin (e+f x)+1)}\right )}{4 f m (1-\sin (e+f x))} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2788
Rule 132
Rubi steps
\begin{align*} \int (-3-5 \sin (e+f x))^{-1-m} (a+a \sin (e+f x))^m \, dx &=\frac{\left (a^2 \cos (e+f x)\right ) \operatorname{Subst}\left (\int \frac{(-3-5 x)^{-1-m} (a+a x)^{-\frac{1}{2}+m}}{\sqrt{a-a x}} \, dx,x,\sin (e+f x)\right )}{f \sqrt{a-a \sin (e+f x)} \sqrt{a+a \sin (e+f x)}}\\ &=\frac{\cos (e+f x) \, _2F_1\left (\frac{1}{2},-m;1-m;\frac{3+5 \sin (e+f x)}{4 (1+\sin (e+f x))}\right ) (-3-5 \sin (e+f x))^{-m} \sqrt{\frac{1-\sin (e+f x)}{1+\sin (e+f x)}} (a+a \sin (e+f x))^m}{4 f m (1-\sin (e+f x))}\\ \end{align*}
Mathematica [C] time = 1.56132, size = 241, normalized size = 2.1 \[ -\frac{4^m (\cosh (m \log (4))-\sinh (m \log (4))) (-5 \sin (e+f x)-3)^{-m} (\sin (e+f x)+i \cos (e+f x)+1) (a (\sin (e+f x)+1))^m \left (-\frac{2 \cos \left (\frac{1}{4} (2 e+2 f x-\pi )\right )+\cos \left (\frac{1}{4} (2 e+2 f x+\pi )\right )}{\sin \left (\frac{1}{4} (2 e+2 f x-\pi )\right )+2 \cos \left (\frac{1}{4} (2 e+2 f x-\pi )\right )}\right )^m \, _2F_1\left (m+1,2 m+1;2 (m+1);\frac{4 \cos \left (\frac{1}{4} (2 e+2 f x-\pi )\right )}{2 \cos \left (\frac{1}{4} (2 e+2 f x-\pi )\right )+\sin \left (\frac{1}{4} (2 e+2 f x-\pi )\right )}\right )}{f (2 m+1) ((2+i) \sin (e+f x)+(-1+2 i) \cos (e+f x)+(2-i))} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.263, size = 0, normalized size = 0. \begin{align*} \int \left ( -3-5\,\sin \left ( fx+e \right ) \right ) ^{-1-m} \left ( a+a\sin \left ( fx+e \right ) \right ) ^{m}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (f x + e\right ) + a\right )}^{m}{\left (-5 \, \sin \left (f x + e\right ) - 3\right )}^{-m - 1}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (a \sin \left (f x + e\right ) + a\right )}^{m}{\left (-5 \, \sin \left (f x + e\right ) - 3\right )}^{-m - 1}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (f x + e\right ) + a\right )}^{m}{\left (-5 \, \sin \left (f x + e\right ) - 3\right )}^{-m - 1}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]